Repository navigation
Conversation
Upgrade packages inherited from the Ubuntu 24.04 base image so fresh builds pick up security fixes on both amd64 and arm64. Fail the build if APT cannot refresh any package index.
Install OpenJDK 8 from Ubuntu on amd64. Pin the headless JDK and JRE to the same package version, use the JDK to build and unpack java-tron, and point JAVA_HOME at the retained JRE after purging the build tools. Pin the Ubuntu OpenJDK 17 headless JRE on arm64 and use its jdk.jartool module to unpack the distribution. Restore launcher permissions on both architectures and remove the tools used only during the build.
Show how to look up the available Ubuntu package versions for each architecture and test a replacement with the OPENJDK_VERSION build argument. Verify the runtime and FullNode before changing the default.
SeriousCoding789
left a comment
There was a problem hiding this comment.
One small gap I noticed: docker.md explains that a fresh build can fail once Ubuntu replaces the pinned package, and shows --build-arg OPENJDK_VERSION=... for building with a newer one. docker.sh --build, however, accepts only an architecture argument and runs docker build with just --platform, --file and --tag, so that override is not available through the helper; users of the script would need to edit the Dockerfile or call docker build directly. Forwarding an OPENJDK_VERSION environment variable as a build argument when it is set would close this gap.
@SeriousCoding789 Good point! Done in a29e447. |
What does this PR do?
8u514-b01~us1-0ubuntu1~24.04.1. Build and unpack java-tron with the headless JDK, then remove it and pointJAVA_HOMEat the retained JRE.17.0.21.1+2-1~24.04.1. Use the headless JRE’s compiler andjdk.jartoolmodules to build and unpack java-tron, eliminating the 7-Zip dependency.Why are these changes required?
The previous builds refreshed the APT index but could retain older versions of
libc6,libpcre2-8-0, andaptfrom the base image. Upgrading installed packages during a fresh build picks up the available Ubuntu fixes.Using Ubuntu packages for Java also removes a separate download and verification path on amd64. The previous build used
curlto fetch a Temurin archive and its signature, then retrieved a signing key from a public keyserver and verified the archive with GPG. APT authenticates Ubuntu’s signed repository metadata and checks the downloaded packages against the hashes it contains. This reduces the build’s attack surface by removing those extra endpoints and verification steps. Ubuntu archive verificationThis PR has been tested by:
FullNode --versionon each. Verified the pinned JRE packages and confirmed both final images containlibc62.39-0ubuntu8.12,libpcre2-8-010.42-4ubuntu2.2, andapt2.8.4ubuntu0.1.bin/,lib/, andconfig.confhad the same SHA-256 hashes as in the previous 7-Zip build. FullNode also started with an empty database, created the genesis block, and started its API and P2P services.Follow up
We will track quarterly and out-of-cycle OpenJDK security advisories, Ubuntu Security Notices and
noble-securitypackage availability, and Eclipse Temurin releases for Java 8 on Linux amd64 and Java 17 on Linux arm64. If an upstream advisory or Temurin release precedes the Ubuntu package, we will check which fixes apply to our runtime and architecture and track the Ubuntu package until it is available. OpenJDK advisories · Ubuntu Security Notices · Temurin release policyWhen Ubuntu publishes a fixed package, test the full package version with
--build-arg OPENJDK_VERSION=..., verify Java and FullNode, then update the corresponding Dockerfile default and rebuild the image. The steps are indocker/docker.md.Extra details
Latest security update. Following the November 17, 2026 OpenJDK advisory, Temurin delivered the amd64 Java 8 runtime about 4 hours earlier, while Ubuntu delivered the arm64 Java 17 runtime about 47.5 hours earlier. The comparison uses the upload time of the architecture-specific Temurin JRE archive and the publication time of Ubuntu’s
jre-headlesspackage innoble-security. All times are UTC. November 17 OpenJDK advisory8u514-b01, amd6417.0.21.1+2, arm64mainand receives standard Canonical security maintenance. OpenJDK 8 is inuniverse, where standard coverage is community-supported. Ubuntu published the pinned8u514fix throughnoble-securitywithout requiring Ubuntu Pro. Delivery times for future updates may vary. Ubuntu security maintenance policy · Ubuntu OpenJDK 8 noticemasterbranch. For an exact rollback, retain the published image and redeploy it by digest.